{extend name="default/shops/base" /}
{block name="title"}提现管理-卖家中心{__block__}{/block}
{block name='css'}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
{/block}
{block name="content"}
<div class='money-head'>
  <div class='shop-logo'><img height='100' width='100'src='__RESOURCE_PATH__/{:session("WST_USER.shopImg")}'></div>
  <div class='shop-info'> 
    <div class='shopName'>{:session('WST_USER.shopName')}</div>
    <div class='shopMoney'>
      <div class="usermoney">
        可用资金：<font color='red' id='shopMoney'>¥0</font>
      </div>
      <div class="cashbox">
        <span style='margin-left:20px;'><a class="cashbtn" id='drawBtn' href="javascript:toDrawMoney();" >申请提现</a></span>
        <span class='draw-tips'>（至少￥{:WSTConf('CONF.drawCashShopLimit')}方可提现）</span>
      </div>
      <div class="wst-clear"></div>
    </div>
    <div class="wst-clear"></div>
    <div class="money-rows">
      <div class="lockbox">
        冻结资金：<font color='red' id='lockMoney'>¥0</font>
      </div>
      <div class="cashbox">
        <span class="cashmoney-box">可提现金额：<font color='red' id='userCashMoney'>¥0</font></span>
      </div>
      <div class="wst-clear"></div>
    </div>
  </div>
</div>
<div class='wst-user-content'>
   <div id='tab' class="wst-tab-box">
    <ul class="wst-tab-nav">
       <li>提现记录</li>
    </ul>
    <div class='wst-tab-content'>
      <div class='wst-tab-item'>
        <table class='wst-list' style="font-size:13px;">
             <thead>
               <tr>
                 <th width='80'>提现单号</th>
                 <th width='100'>提现银行</th>
                 <th width='130'>开户地区</th>
                 <th width='130'>银行卡号</th>
                 <th width='100'>持卡人</th>
                 <th width='60'>提现金额</th>
                 <th width='250'>提现状态</th>
               </tr>
             </thead>
             <script id="draw-list" type="text/html">
             {{# for(var i = 0; i < d.length; i++){ }}
                <tr>
                  <td>{{d[i].cashNo}}</td>
                  <td>{{d[i].accTargetName}}</td>
                  <td>{{ d[i].accAreaName }}</td>
                  <td>{{ d[i].accNo }}</td>
                  <td>{{ d[i].accUser }}</td>
                  <td>¥{{ d[i].money }}</td>
                  <td {{#if(d[i].cashSatus==-1){}}style='line-height:25px;'{{#}}}>
                  {{#if(d[i].cashSatus==1){}}提现成功
                  {{#}else if(d[i].cashSatus==-1){}}提现失败
                  <br/>【原因】{{d[i].cashRemarks}}
                  {{#}else{}}待处理{{#}}}</td>
                </tr>
             {{# } }}
             </script>
             <tbody id="draw-page-list"></tbody>
             <tfoot>
               <tr>
                  <td colspan='5' align="center" style='padding:5px 0px 5px 0px'>
            <div id="draw-pager"></div>
          </td>
               </tr>
             </tfoot>
          </table>
        </div>
      </div>
    </div>  
</div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/cashdraws/cashdraws.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script>
$(function(){
   getShopMoney();
})
</script>
{/block}